<div class="editor-default-node4-header-medium" data-template="t_4_3">
	<img src="https://urc-thumb.oss-cn-beijing.aliyuncs.com/resource-temp/1725514076938section-ico4.png">1.2.6
	安装openGauss数据库
</div>
<p>  <b>1. 创建XML配置文件</b></p>
<p class="row_dist_2 word_dist_0" style="text-align:justify;">&nbsp; &nbsp; &nbsp;
	&nbsp;安装openGauss前需要创建cluster_config.xml文件。cluster_config.xml文件包含部署openGauss的服务器信息、安装目录、IP地址以及端口号等，用于告知openGauss如何部署，每行信息均有注释进行说明。用户需根据不同场景配置和修改对应的XML文件，单节点部署和分布式部署模式的XML文件模板都可以参考官方文档。
</p>
<p class="row_dist_2 word_dist_0">
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;以创建单节点配置文件为例，首先在/opt/software/openGauss目录下执行如下命令：</p>
<p><span class="font_blue2">vi
		cluster_config.xml</span></p>
<p style="text-align:justify;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;然后按i键切换到vi编辑器的编辑模式，接着把如下示例内容粘贴到文件内：</p>
<p><span class="font_blue2">&lt;?xml&nbsp;version="1.0"&nbsp;encoding="UTF-8"?&gt;<br>
		&lt;ROOT&gt;<br>
		&nbsp;&nbsp;&nbsp;<span class="font_green">&nbsp;&lt;!--&nbsp;openGauss整体信息&nbsp;--&gt;</span><br>
		&nbsp;&nbsp;&nbsp;&nbsp;&lt;CLUSTER&gt;<br>
		&nbsp;&nbsp;&nbsp;<span class="font_green">&nbsp;&lt;!--&nbsp;数据库名称&nbsp;--&gt;</span><br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM&nbsp;name="clusterName"&nbsp;value="gauss_omm"/&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;<span
			class="font_green">&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--&nbsp;数据库节点名称(hostname)&nbsp;--&gt;</span><br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM&nbsp;name="nodeNames"&nbsp;value="node1"/&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="font_green">&nbsp;&lt;!--&nbsp;数据库安装目录--&gt;</span><br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM&nbsp;name="gaussdbAppPath"&nbsp;value="/opt/omm/cluster/app"/&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="font_green">&lt;!--&nbsp;日志目录--&gt;</span><br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM&nbsp;name="gaussdbLogPath"&nbsp;value="/opt/omm/cluster/gaussdb_log"&nbsp;/&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="font_green">&lt;!--&nbsp;临时文件目录--&gt;</span><br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM&nbsp;name="tmpMppdbPath"&nbsp;value="/opt/omm/cluster/tmp"/&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="font_green">&lt;!--&nbsp;数据库工具目录--&gt;</span><br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM&nbsp;name="gaussdbToolPath"&nbsp;value="/opt/omm/cluster/tool"/&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
			class="font_green">&lt;!--&nbsp;数据库core文件目录--&gt;</span><br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM&nbsp;name="corePath"&nbsp;value="/opt/omm/cluster/corefile"/&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="font_green">&lt;!--&nbsp;节点IP，<b
				class="font_green">需要自行修改</b>，与数据库节点名称列表一一对应&nbsp;--&gt;</span><br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM&nbsp;name="backIp1s"&nbsp;value="192.168.108.138"/&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&lt;/CLUSTER&gt;<br>
		&nbsp;&nbsp;&nbsp;<span class="font_green">&nbsp;&lt;!--&nbsp;每台服务器上的节点部署信息&nbsp;--&gt;</span><br>
		&nbsp;&nbsp;&nbsp;&nbsp;&lt;DEVICELIST&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
			class="font_green">&lt;!--&nbsp;节点1上的部署信息&nbsp;--&gt;</span><br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;DEVICE&nbsp;sn="node1"&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
			class="font_green">&lt;!--&nbsp;节点1的主机名称&nbsp;--&gt;</span><br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM&nbsp;name="name"&nbsp;value="node1"/&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
			class="font_green">&lt;!--&nbsp;节点1所在的AZ及AZ优先级&nbsp;--&gt;</span><br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM&nbsp;name="azName"&nbsp;value="AZ1"/&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM&nbsp;name="azPriority"&nbsp;value="1"/&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
			class="font_green">&nbsp;&lt;!--&nbsp;节点1的IP，<b
				class="font_green">需要自行修改</b>，如果服务器只有一个网卡可用，将backIP1和sshIP1配置成同一个IP&nbsp;--&gt;</span><br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM&nbsp;name="backIp1"&nbsp;value="192.168.108.138"/&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM&nbsp;name="sshIp1"&nbsp;value="192.168.108.138"/&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
			class="font_green">&nbsp;&lt;!--&nbsp;dn&nbsp;--&gt;</span><br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM&nbsp;name="dataNum"&nbsp;value="1"/&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM&nbsp;name="dataPortBase"&nbsp;value="15400"/&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM&nbsp;name="dataNode1"&nbsp;value="/opt/omm/cluster/dn1"/&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/DEVICE&gt;<br>
		&nbsp;&nbsp;&nbsp;&nbsp;&lt;/DEVICELIST&gt;<br>
		&lt;/ROOT&gt;</span><br>
</p>
<p style="text-align:justify;"><span class="font_black1">  <span class="font_black1">XML文件的参数说明如下表1-2-1所示。</span></span>
</p>
<p style="margin-top:0pt; margin-bottom:0pt; text-align:center"><span class="font_wryh">表1-2-1 XML参数说明</span></p>
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="insertTable">
	<tbody>
		<tr>
			<td
				style="width: 31.3pt; border-right-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(68, 114, 196);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:11pt"><span
						style="color:#ffffff">实例类型</span></p>
			</td>
			<td
				style="width: 81.3pt; border-right-width: 1pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(68, 114, 196);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:11pt"><span
						style="color:#ffffff">参数</span></p>
			</td>
			<td
				style="width: 269.3pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(68, 114, 196);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:11pt"><span
						style="color:#ffffff">说明</span></p>
			</td>
		</tr>
		<tr>
			<td rowspan="8"
				style="width: 31.3pt; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p class="font_normal"><span class="font_normal">整体信息</span></p>
			</td>
			<td
				style="width: 81.3pt; border-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:10.5pt">clusterName</p>
			</td>
			<td
				style="width: 269.3pt; border-top-width: 1pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; font-size:10.5pt">数据库名称。</p>
			</td>
		</tr>
		<tr>
			<td
				style="width: 81.3pt; border-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:10.5pt">nodeNames</p>
			</td>
			<td
				style="width: 269.3pt; border-top-width: 1pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; font-size:10.5pt">主机名称。</p>
			</td>
		</tr>
		<tr>
			<td
				style="width: 81.3pt; border-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:10.5pt">gaussdbAppPath</p>
			</td>
			<td
				style="width: 269.3pt; border-top-width: 1pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; font-size:10.5pt">
					程序安装目录。此目录应适当预留冗余空间，与数据库所需其它目录相互独立，没有包含关系。</p>
			</td>
		</tr>
		<tr>
			<td
				style="width: 81.3pt; border-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:10.5pt">gaussdbLogPath</p>
			</td>
			<td
				style="width: 269.3pt; border-top-width: 1pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; font-size:10.5pt">
					数据库运行日志和操作日志存储目录。此目录应适当预留冗余空间，与数据库所需其它目录相互独立，没有包含关系。</p>
			</td>
		</tr>
		<tr style="height:29.45pt">
			<td
				style="width: 81.3pt; border-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:10.5pt">tmpMppdbPath</p>
			</td>
			<td
				style="width: 269.3pt; border-top-width: 1pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; font-size:10.5pt">数据库临时文件存放目录。</p>
			</td>
		</tr>
		<tr>
			<td
				style="width: 81.3pt; border-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:10.5pt">gaussdbToolPath</p>
			</td>
			<td
				style="width: 269.3pt; border-top-width: 1pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; font-size:10.5pt">
					系统工具目录，主要用于存放互信工具等。此目录应与数据库所需其它目录相互独立，没有包含关系。</p>
			</td>
		</tr>
		<tr>
			<td
				style="width: 81.3pt; border-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:10.5pt">corePath</p>
			</td>
			<td
				style="width: 269.3pt; border-top-width: 1pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; font-size:10.5pt">
					核心文件的指定目录。此目录应与数据库所需其它目录相互独立，没有包含关系。</p>
			</td>
		</tr>
		<tr>
			<td
				style="width: 81.3pt; border-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:10.5pt">backIp1s</p>
			</td>
			<td
				style="width: 269.3pt; border-top-width: 1pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; font-size:10.5pt">
					数据库节点在后端存储网络中的IP地址（内网IP）。此处设置为192.168.108.138，须根据实际情况修改。</p>
			</td>
		</tr>
		<tr>
			<td rowspan="8"
				style="width: 31.3pt; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p class="font_normal">节点部署信息</p>
			</td>
			<td
				style="width: 81.3pt; border-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:10.5pt">name</p>
			</td>
			<td
				style="width: 269.3pt; border-top-width: 1pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; font-size:10.5pt">主机名称。此处设置为node1。</p>
			</td>
		</tr>
		<tr>
			<td
				style="width: 81.3pt; border-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:10.5pt">azName</p>
			</td>
			<td
				style="width: 269.3pt; border-top-width: 1pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; font-size:10.5pt">指定azName（Available
					Zone Name），格式为字符串（不能含有特殊字符），例如AZ1、AZ2、AZ3。此处设置为AZ1。</p>
			</td>
		</tr>
		<tr>
			<td
				style="width: 81.3pt; border-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:10.5pt">azPriority</p>
			</td>
			<td
				style="width: 269.3pt; border-top-width: 1pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; font-size:10.5pt">
					指定azPriority的优先级。此处设置为1。</p>
			</td>
		</tr>
		<tr>
			<td
				style="width: 81.3pt; border-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:10.5pt">backIp1</p>
			</td>
			<td
				style="width: 269.3pt; border-top-width: 1pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; font-size:10.5pt">
					主机在后端存储网络中的IP地址（内网IP）。所有openGauss主机使用后端存储网络通讯，需要根据本机网络地址自行修改。此处设置为192.168.108.138，须根据实际情况修改。</p>
			</td>
		</tr>
		<tr>
			<td
				style="width: 81.3pt; border-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:10.5pt">sshIp1</p>
			</td>
			<td
				style="width: 269.3pt; border-top-width: 1pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; font-size:10.5pt">
					设置SSH可信通道IP地址（外网IP）。若无外网，则可以不设置该选项或者保持与backIp1设置相同IP。此处设置为192.168.108.138，须根据实际情况修改。</p>
			</td>
		</tr>
		<tr>
			<td
				style="width: 81.3pt; border-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:10.5pt">dataNum</p>
			</td>
			<td
				style="width: 269.3pt; border-top-width: 1pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; font-size:10.5pt">
					当前主机上需要部署的数据库节点个数。此处设置为1。</p>
			</td>
		</tr>
		<tr>
			<td
				style="width: 81.3pt; border-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:10.5pt">dataPortBase</p>
			</td>
			<td
				style="width: 269.3pt; border-top-width: 1pt; border-left-width: 1pt; border-bottom-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; font-size:10.5pt">
					数据库节点的基础端口号。此处设置为15400，须根据实际情况修改。</p>
			</td>
		</tr>
		<tr>
			<td
				style="width: 81.3pt; border-top-width: 1pt; border-right-width: 1pt; border-left-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:10.5pt">dataNode1</p>
			</td>
			<td
				style="width: 269.3pt; border-top-width: 1pt; border-left-width: 1pt; padding-right: 4.9pt; padding-left: 4.9pt; vertical-align: middle; background-color: rgb(189, 215, 238);">
				<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; font-size:10.5pt">
					用于指定当前主机上的数据库节点的数据存储目录。此目录为数据库的数据存储目录。应规划到数据盘上。此处设置为/opt/omm/cluster/dn1。</p>
			</td>
		</tr>
	</tbody>
</table>
<p style="margin-top:0pt; margin-bottom:0pt; text-align:justify;"><span
		style="letter-spacing: 0px; text-align: justify;">&nbsp; &nbsp; &nbsp; &nbsp;
		根据实际情况完成XML文件的编辑和修改。确认无误后，先按ESC键退出编辑模式，最后输入:wq保存文件内容并按Enter键退出。</span></p>
<p class="font_black" style="text-align:center;"></p>
<p class="row_dist_2 word_dist_0">  <b>2. 使用gs_preinstall准备安装环境</b></p>
<p class="row_dist_2 word_dist_0" style="text-align:justify;">&nbsp; &nbsp; &nbsp; &nbsp;使用cd命令进入到工具脚本存放目录下。</p>
<p class="row_dist_2 word_dist_0"><span class="row_dist_2 word_dist_0 font_blue2">[root@node1
		openGauss]# cd /opt/software/openGauss/script</span></p>
<p class="row_dist_2 word_dist_0" style="text-align:justify;">
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;接下来，使用gs_preinstall准备安装环境。omm为数据库管理员（同时也是运行openGauss的操作系统用户），dbgrp为omm用户所属的用户组名称，/opt/software/openGauss/cluster_config.xml为openGauss配置文件路径。在执行过程中，根据提示选择输入yes同意创建omm用户，并输入两次omm用户的密码。此处密码设置为opengauss_123，输入密码时系统自动隐藏了密码。
</p>
<p><span class="font_blue2" style=""><b>[root@node1
			script]# ./gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/cluster_config.xml&nbsp;</b></span></p>
<p><span class="font_blue2" style="">Successfully
		parsed the configuration file.</span></p>
<p>
	<font color="#4d80bf">......</font>
</p>
<p><span class="font_blue2"><b class="font_blue2">Are
			you sure you want to create the user[omm] (yes/no)? yes&nbsp;</b></span></p>
<p><span class="font_blue2"><b class="font_blue2">Please
			enter password for cluster user.&nbsp;</b></span></p>
<p><span class="font_blue2"><b class="font_blue2">Password:&nbsp;</b></span></p>
<p><span class="font_blue2"><b class="font_blue2">Please
			enter password for cluster user again.&nbsp;</b></span></p>
<p><span class="font_blue2"><b class="font_blue2">Password:&nbsp;</b></span></p>
<p><span class="font_blue2">Generate
		cluster user password files successfully.&nbsp;</span></p>
<p><span class="font_blue2">Successfully
		created [omm] user on all nodes.&nbsp;</span></p>
<p><span class="font_blue2">......&nbsp;</span></p>
<p><span class="font_blue2">Setting
		finish flag.&nbsp;</span></p>
<p><span class="font_blue2">Successfully
		set finish flag.&nbsp;</span></p>
<p><span class="font_blue2">Preinstallation
		succeeded.&nbsp;</span></p>
<p style="text-align:justify;">  命令与执行结果如图1-2-7所示。</p>
<p style="text-align:center;" id="pic_p_P3RBKR7R3C"><img res-type="image" class="insertPic cres" id="P3RBKR7R3C"
		src="https://dbook.hep.com.cn/api/v2/resource/preview?id=P3RBKR7R3C" style="max-width:100%;"><br><span
		class="insertPicTitle" id="pic_title_P3RBKR7R3C">图1-2-7 使用gs_preinstall准备安装环境</span></p>

<p>  <b>3. 使用gs_install安装openGauss</b></p>
<p style="text-align:justify;">&nbsp; &nbsp; &nbsp;
	&nbsp;安装脚本gs_install必须以前置脚本中指定的omm用户执行，否则，脚本执行会报错。首先登录到openGauss的主机，并切换到omm用户，如图1-2-8所示。命令如下：</p>
<p><span class="font_blue2">[root@node1
		script]# su – omm</span></p>
<p style="text-align:center;" id="pic_p_FKLARJJF3C"><img res-type="image" class="insertPic cres" id="FKLARJJF3C"
		src="https://dbook.hep.com.cn/api/v2/resource/preview?id=FKLARJJF3C" style="max-width:100%;"><span
		class="insertPicTitle" id="pic_title_FKLARJJF3C">图1-2-8 切换到omm用户</span></p>

<p class="row_dist_2 word_dist_0" style="text-align:justify;">
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;然后执行安装命令。其中/opt/software/openGauss/cluster_config.xml为openGauss配置文件的路径。在执行过程中，需根据提示输入两次管理员omm的密码输入两次omm用户的密码，此处密码设置为opengauss_123，输入密码时系统自动隐藏了密码。
</p>
<p class="p-fold"><span class="td-fold"><input id="check_1731600184761" type="checkbox"><span class="foldTitle "><b
				class="font_blue3 ">密码的复杂度要求</b></span><label for="check_1731600184761" class="check-in-fold"
			style="background-image: url(&quot;https://dbook.hep.com.cn/admin/css/img/upICO.png&quot;); background-repeat: no-repeat; background-color: initial; background-size: 30px;"></label><label
			for="check_1731600184761" class="check-out-fold"
			style="background-image: url(&quot;https://dbook.hep.com.cn/admin/css/img/downICO.png&quot;); background-repeat: no-repeat; background-color: initial; background-size: 30px;"></label><span
			class="element-fold "><span class=""><span style="font-family: 楷体;">（1）最少包含8个字符；  </span></span></span><span
			class="element-fold "><span class=""><span
					style="font-family: 楷体;">（2）不能和用户名、当前密码以及当前密码反序相同；  </span></span></span><span
			class="element-fold "><span class=""><span
					style="font-family: 楷体;">（3）至少包含大写字母（A-Z），小写字母（a-z），数字，非字母数字字符（限定为~!@#$%^&amp;*()-_=+\|[{}];:,&lt;.&gt;/?）四类字符中的三类字符。</span></span></span></span>
</p>
<p><b>注意：为保证用户正常使用该数据库，请务必牢记输入的数据库密码。</b></p>
<p>命令如下：</p>
<p><span class="font_blue2"><b>[omm@node1
			~]$ gs_install -X /opt/software/openGauss/cluster_config.xml&nbsp;</b></span></p>
<p><span class="font_blue2">Parsing
		the configuration file.&nbsp;</span></p>
<p>
	<font color="#4d80bf">......</font>
</p>
<p><span class="font_blue2">Successfully
		installed APP.&nbsp;</span></p>
<p><span class="font_blue2">begin
		init Instance..&nbsp;</span></p>
<p><span class="font_blue2">encrypt
		cipher and rand files for database.&nbsp;</span></p>
<p><span class="font_blue2"><b class="font_blue2">Please
			enter password for database:&nbsp;</b></span></p>
<p><span class="font_blue2"><b class="font_blue2">Please
			repeat for database:&nbsp;</b></span></p>
<p><span class="font_blue2">begin to create CA cert files&nbsp;</span></p>
<p><span class="font_blue2">…...&nbsp;</span></p>
<p><span class="font_blue2">Successfully started cluster.&nbsp;</span></p>
<p><span class="font_blue2">Successfully installed application.

		end deploy..&nbsp;</span></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;命令与执行结果如图1-2-9所示。</p>
<p style="text-align:center;" id="pic_p_P3W9K6763C"><img res-type="image" class="insertPic cres" id="P3W9K6763C"
		src="https://dbook.hep.com.cn/api/v2/resource/preview?id=P3W9K6763C" style="max-width:100%;"><br><span
		class="insertPicTitle" id="pic_title_P3W9K6763C">图1-2-9 使用gs_install执行安装</span></p>
<p style="text-align: center;" id="video_p_P35YXL5KCC"><span class="td" id="video_td_span_P35YXL5KCC"><input
			id="check_P35YXL5KCC" type="checkbox" class="insertVideoCheck"><span class="videoTitlepc-new"
			id="video_title_span_P35YXL5KCC"
			style="background: url(https://dbook.hep.com.cn/admin/css/img/vedio_pic.png) no-repeat 5px 7px;background-size: 45px;">视频1-2-3
			安装openGauss数据库（安装openGauss数据库）</span><label for="check_P35YXL5KCC" class="check-in-new"
			style="background-image: url(&quot;https://dbook.hep.com.cn/admin/css/img/upICO.png&quot;); background-repeat: no-repeat; background-color: initial; background-size: 30px;"></label><label
			for="check_P35YXL5KCC" class="check-out-new"
			style="background-image: url(&quot;https://dbook.hep.com.cn/admin/css/img/downICO.png&quot;); background-repeat: no-repeat; background-color: initial; background-size: 30px;"></label><span
			class="element-new"><video res-type="video" class="insertVideo cres" id="P35YXL5KCC"
				src="https://dbook.hep.com.cn/api/v2/resource/preview?id=P35YXL5KCC" controls="" width="100%"
				poster="https://dbook.hep.com.cn/api/v2/resource/cover/preview?id=P35YXL5KCC"></video><br><span
				class="insertVideoTitle" id="video_title_P35YXL5KCC">视频1-2-3
				安装openGauss数据库（安装openGauss数据库）</span></span></span></p>